home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / BORLAND TURBO / DLLHUSK.PAK / TESTDLL1.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.3 KB  |  87 lines

  1. // TESTDLL1.H Public API exported from 'TESTDLL1.DLL'
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. // Note: This sample uses AFX_EXT_CLASS to export an entire class.
  14. // This avoids creating a .DEF file with all the decorated names for
  15. // the class.  Creating a .DEF file is more efficient since the names
  16. // can be exported by ordinal.  To use that method of exporting, much
  17. // like MFC does itself, uncomment the following two lines and add
  18. // the appropriate lines to your .DEF file.
  19.  
  20. //#undef AFX_DATA
  21. //#define AFX_DATA AFX_EXT_DATA
  22.  
  23. #ifdef _MAC
  24. #undef AFX_EXT_API
  25. #undef AFX_EXT_CLASS
  26. #define AFX_EXT_API
  27. #define AFX_EXT_CLASS
  28. #endif
  29.  
  30. // Initialize the DLL, register the classes etc
  31. extern "C" AFX_EXT_API void WINAPI InitTestDLL1();
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // Simple Text document
  35.  
  36. class AFX_EXT_CLASS CTextDoc : public CDocument
  37. {
  38.     DECLARE_DYNCREATE(CTextDoc)
  39. protected:
  40.     void Serialize(CArchive& ar);
  41.     //{{AFX_MSG(CTextDoc)
  42.     //}}AFX_MSG
  43.     DECLARE_MESSAGE_MAP()
  44. };
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // Simple output view
  48.  
  49. class AFX_EXT_CLASS CHelloView : public CView
  50. {
  51.     DECLARE_DYNCREATE(CHelloView)
  52. public:
  53.     CHelloView();
  54.  
  55. // Implementation
  56. protected:
  57.     UINT m_nIDColor;        // last color command
  58.     COLORREF m_clrText;
  59.  
  60.     virtual void OnDraw(CDC* pDC);
  61.     // message handlers
  62.     //{{AFX_MSG(CHelloView)
  63.     afx_msg void OnColor();
  64.     afx_msg void OnCustomColor();
  65.     afx_msg void OnUpdateColor(CCmdUI* pCmdUI);
  66.     //}}AFX_MSG
  67.  
  68.     DECLARE_MESSAGE_MAP()
  69. };
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72. // Simple do-nothing document
  73.  
  74. class AFX_EXT_CLASS CDummyDoc : public CDocument
  75. {
  76.     DECLARE_DYNCREATE(CDummyDoc)
  77. protected:
  78.     //{{AFX_MSG(CDummyDoc)
  79.     //}}AFX_MSG
  80.     DECLARE_MESSAGE_MAP()
  81. };
  82.  
  83. #undef AFX_DATA
  84. #define AFX_DATA
  85.  
  86. /////////////////////////////////////////////////////////////////////////////
  87.